﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;

namespace Venta_Automatica.Models
{
    //public class ClienteModels
    //{
    //    public int dni { get; set; }
    //    public string cliente { get; set; }
    //    public string direccion { get; set; }
    //}

    public class ValidaClienteModels
    {
        [Required]
        [DisplayName("Dni Cliente")]
        public int dni { get; set; }
        
        
        [DisplayName("Nombres")]
        public string Nombres { get; set; }

        
        [DisplayName("Apellido Paterno")]
        public string apePat { get; set; }

        
        [DisplayName("Apellido Materno")]
        public string apeMat { get; set; }

        
        [DisplayName("Direccion")]
        public string direccion { get; set; }

        
        [DisplayName("Linea de Crédito")]
        public decimal LineaCredito { get; set; }

        
        [DisplayName("Tarjeta")]
        public string Tarjeta { get; set; }


    }

    public class RegistrarClienteModel
    {
        [Required]
        [DisplayName("Dni Cliente")]
        public int dni { get; set; }

        [Required]
        [DisplayName("Nombres")]
        public string Nombres { get; set; }

        [Required]
        [DisplayName("Apellido Paterno")]
        public string apePat { get; set; }

        [Required]
        [DisplayName("Apellido Matermo")]
        public string apeMat { get; set; }

        [Required]
        [DisplayName("Linea de Crédito")]
        public decimal LineaCredito { get; set; }

        [DisplayName("Tarjeta")]
        public string Tarjeta { get; set; }
    }

    public class ListarClienteModel
    {
        [Required]
        [DisplayName("Dni Cliente")]
        public int dni { get; set; }

        [Required]
        [DisplayName("Nombres")]
        public string Nombres { get; set; }

        [Required]
        [DisplayName("Apellidos Paternos")]
        public string apePat { get; set; }

        [Required]
        [DisplayName("Apellidos Materno")]
        public string apeMat { get; set; }

        [Required]
        [DisplayName("Direccion")]
        public string Direccion { get; set; }

        [DisplayName("Tarjeta")]
        public string Tarjeta{ get; set; }

        [Required]
        [DisplayName("Linea de Crédito")]
        public decimal LineaCredito { get; set; }
    }

}